
#obj-m	:= glink-class.o
# 自己编写的驱动，用内核线程实现长按检测
#obj-m	:= s7611_ts.o
#obj-m	:= mxs-hsadc.o
# 按照厂家给的7寸驱动，不能识别按键长按
#obj-m	:= s7611_ts_7.o

#obj-m	:= touch-s.c.bak.o
#obj-m	:= ds2782_battery.o
obj-m	:= max1720x.o
MODULE_INSTALDIR ?= /lib/modules/$(shell uname -r)/kernel/drivers/net/usb
KERNELDIR = /work/EasyArm/linux-2.6.35.3
# KERNELDIR = /work/forlinx/linux-4.1.15
PWD       := $(shell pwd)

default:
	$(MAKE) -C $(KERNELDIR) M=$(PWD)  





clean:
	$(MAKE) -C $(KERNELDIR) M=$(PWD) clean

install:
	modprobe -r glink-class
	# install -c -m 0644 glink-class.ko $(MODULE_INSTALDIR)
	depmod -a -e

#depend .depend dep:
#	$(CC) $(CFLAGS) -M *.c > .depend


#ifeq (.depend,$(wildcard .depend))
#include .depend
#endif
